package vn.vfriends.soffice.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.soffice.entity.Menu;
import vn.vfriends.soffice.entity.Permission;

/**
 *
 * @author chaungoctuan@gmail.com
 */
public interface PermissionService extends Serializable {

    void create(Permission permission) throws Exception;

    void edit(Permission permission) throws Exception;

    void remove(Permission permission) throws Exception;

    Permission find(Object id);

    List<Permission> findAll();
    
    List<Permission> findRange(int[] range);

    int count();

    public List<Permission> findPermissionsByMenu(Menu menu);
}
